diff --git a/src/_pytest/pathlib.py b/src/_pytest/pathlib.py
index 0403b6947..e3d2f44e1 100644
--- a/src/_pytest/pathlib.py
+++ b/src/_pytest/pathlib.py
@@ -343,4 +343,7 @@ def unique_path(path):
 
     This is needed only for ``py.path.local``; ``pathlib.Path`` handles this
     natively with ``resolve()``."""
-    return type(path)(normcase(str(path.realpath())))
+    if sys.platform.startswith('win32'):
+        return type(path)(os.path.normpath(str(path)))
+    else:
+        return type(path)(normcase(str(path.realpath())))
